package com.travel.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {



    public static  String date2String(Date date,String format){
        SimpleDateFormat dateFormat = new SimpleDateFormat(format);

        String str = dateFormat.format(date);
        return str;
    }



}
